<%@ page import="weaver.formmode.setup.ModeRightInfo" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.hrm.User" %>
<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="rs1" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%
    ModeRightInfo moderight = new ModeRightInfo();
    moderight.editModeDataShare(1, 10021, id);
    User user = HrmUserVarify.getUser( request,response );
    int userid = user.getUID();
    int requestid = Util.getIntValue(request.getParameter("requestid"));
    rs.executeQuery("select id from formtable_main_198 where requestid='" + requestid + "'");
    bb.writeLog("select id from formtable_main_198 where requestid='" + requestid + "'");
    rs.next();
    String mainid = Util.null2String(rs.getString("id"));
    rs1.executeQuery("select id,tpdxwb from formtable_main_198_dt1 where where mainid='" + mainid + "' and tpdxwb !=''");
    while (rs1.next()){
        String id = Util.null2String(rs1.getString("id"));
        String tpdxwb = Util.null2String(rs1.getString("tpdxwb"));
        rs1.executeUpdate("update formtable_main_198_dt1 set tp = '"+tpdxwb+"' where id='"+id+"'");
        bb.writeLog("update formtable_main_198_dt1 set tp = '"+tpdxwb+"' where id='"+id+"'");
    }
%>